package 华为机试;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.Scanner;
import java.util.TreeSet;

public class HJ3_明明的随机数 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();

        TreeSet set = new TreeSet();
        for(int i = 0; i < N; i++) {
            set.add(scan.nextInt());
        }
        // 输出
        Iterator it = set.iterator();
        while(it.hasNext()) {
            System.out.println(it.next());
        }

    }
}
